#include <IE.au3>

$sURL = "http://www.daum.net/Mail-bin/login.html?daumauth=1&category=cafe&url=http%3A//friends.cafe.daum.net/_i21_/home.do%3Fcafeid%3D156jo"
$oIE = _IECreate($sURL)

$o_form = _IEFormGetObjByName( $oIE, "loginform" )
$o_id = _IEFormElementGetObjByName ($o_form, "id" )
$o_pw = _IEFormElementGetObjByName ($o_form, "enpw" )
_IEFormElementSetValue ($o_id, "nemo1234")
_IEFormElementSetValue ($o_pw, "cocapep")
_IEFormImageClick($oIE, "http://image.hanmail.net/hanmail/login2006/bt_login.gif" )
Sleep(500)
_IELoadWait($oIE)
_IENavigate( $oIE, "http://friends.cafe.daum.net/_i21_/board/article_write.do?cafeid=156jo&fldid=31&cate=1&btype=normal")
_IELoadWait($oIE)
Opt("SendKeyDelay", 20)          ;5 milliseconds
WinActivate("Daum ")
Opt("MouseCoordMode", 0)
MouseClick( "Left", 269, 451 )
Send( "{TAB}" )
Send("abcdefgasdfasfd")
MouseClick( "Left", 354, 569 )
Send("bodybody")
MouseClick( "Left", 269, 451 )
Send("{DOWN}")
Send("{DOWN}")
Send("{DOWN}")
Send("{DOWN}")
Send("{DOWN}")
Send("{DOWN}")
Send("{DOWN}")
Send("{DOWN}")
MouseClick( "Left", 351, 712 )
Send( "{TAB}" )
Send( "{ENTER}" )
Send( "{SPACE}" )
_IELoadWait($oIE)
MsgBox(4096, "Test", "This box will time out in 10 seconds", 10)

